<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  <meta name="description" content="刘清政">
  <meta name="keyword" content="hexo-theme">
  
    <link rel="shortcut icon" href="/css/images/logo.png">
  
  <title>
    
      Justin-刘清政的博客
    
  </title>
  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/tomorrow.min.css" rel="stylesheet">
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/css/plugins/gitment.css">

  
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
  
    
<script src="/js/qrious.js"></script>

  
  
    
<script src="/js/gitment.js"></script>

  
  

  
<meta name="generator" content="Hexo 4.2.0"></head>
<div class="wechat-share">
  <img src="/css/images/logo.png" />
</div>

  <body>
    <header class="header fixed-header">
  <div class="header-container">
    <a class="home-link" href="/">
      <div class="logo"></div>
      <span>Justin-刘清政的博客</span>
    </a>
    <ul class="right-list">
      
        <li class="list-item">
          
            <a href="/" class="item-link active">主页</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/tags/" class="item-link">标签</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/archives/" class="item-link">归档</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/about/" class="item-link">关于我</a>
          
        </li>
      
    </ul>
    <div class="menu">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </div>
    <div class="menu-mask">
      <ul class="menu-list">
        
          <li class="menu-item">
            
              <a href="/" class="menu-link mobile-active">主页</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/tags/" class="menu-link">标签</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/archives/" class="menu-link">归档</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/about/" class="menu-link">关于我</a>
            
          </li>
        
      </ul>
    </div>
  </div>
</header>

    <main class="app-body">
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/7-Elasticsearch%E4%B9%8B%E9%AB%98%E4%BA%AE%E6%9F%A5%E8%AF%A2/">db/Elasticsearch系列/9-11文档操作/7-Elasticsearch之高亮查询</a>
      </h2>
      <p class="article-date">2020年3月10日</p>
      
      <div class="article-summary">
        
          7-Elasticsearch之高亮查询一 前言如果返回的结果集中很多符合条件的结果，那怎么能一眼就能看到我们想要的那个结果呢？比如下面网站所示的那样，我们搜索elasticsearch，在结果集中，将所有elasticsearch高亮显示？ 
如上图我们搜索百度一样。
我们该怎么做呢？
二 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/7-Elasticsearch%E4%B9%8B%E9%AB%98%E4%BA%AE%E6%9F%A5%E8%AF%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/7-Elasticsearch%E4%B9%8B%E6%9F%A5%E8%AF%A2%E7%BB%93%E6%9E%9C%E8%BF%87%E6%BB%A4/">db/Elasticsearch系列/9-11文档操作/7-Elasticsearch之查询结果过滤</a>
      </h2>
      <p class="article-date">2020年3月10日</p>
      
      <div class="article-summary">
        
          7-Elasticsearch之查询结果过滤一 前言在未来，一篇文档可能有很多的字段，每次查询都默认给我们返回全部，在数据量很大的时候，是的，比如我只想查姑娘的手机号，你一并给我个喜好啊、三围什么的算什么？ 所以，我们对结果做一些过滤，清清白白的告诉elasticsearch
二 准备数据1 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/7-Elasticsearch%E4%B9%8B%E6%9F%A5%E8%AF%A2%E7%BB%93%E6%9E%9C%E8%BF%87%E6%BB%A4/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/6-Elasticsearch%E4%B9%8B%E5%B8%83%E5%B0%94%E6%9F%A5%E8%AF%A2/">db/Elasticsearch系列/9-11文档操作/6-Elasticsearch之布尔查询</a>
      </h2>
      <p class="article-date">2020年3月10日</p>
      
      <div class="article-summary">
        
          6-Elasticsearch之布尔查询一 前言布尔查询是最常用的组合查询，根据子查询的规则，只有当文档满足所有子查询条件时，elasticsearch引擎才将结果返回。布尔查询支持的子查询条件共4中：

must（and）
should（or）
must_not（not）
filter

 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/6-Elasticsearch%E4%B9%8B%E5%B8%83%E5%B0%94%E6%9F%A5%E8%AF%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/5-Elasticsearch%E4%B9%8B%E5%88%86%E9%A1%B5%E6%9F%A5%E8%AF%A2/">db/Elasticsearch系列/9-11文档操作/5-Elasticsearch之分页查询</a>
      </h2>
      <p class="article-date">2020年3月10日</p>
      
      <div class="article-summary">
        
          5-Elasticsearch之分页查询一 准备数据123456789101112131415161718192021222324252627282930313233343536373839404142434445PUT lqz/doc/1&#123;  "name":"顾老二",  "ag ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/5-Elasticsearch%E4%B9%8B%E5%88%86%E9%A1%B5%E6%9F%A5%E8%AF%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/4%20Elasticsearch%E4%B9%8B%E6%8E%92%E5%BA%8F%E6%9F%A5%E8%AF%A2/">db/Elasticsearch系列/9-11文档操作/4 Elasticsearch之排序查询</a>
      </h2>
      <p class="article-date">2020年3月9日</p>
      
      <div class="article-summary">
        
          4 Elasticsearch之排序查询一 准备数据123456789101112131415161718192021222324252627282930313233343536373839404142434445PUT lqz/doc/1&#123;  "name":"顾老二",  "ag ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/4%20Elasticsearch%E4%B9%8B%E6%8E%92%E5%BA%8F%E6%9F%A5%E8%AF%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/3-term%E4%B8%8Ematch%E6%9F%A5%E8%AF%A2/">db/Elasticsearch系列/9-11文档操作/3-term与match查询</a>
      </h2>
      <p class="article-date">2020年3月9日</p>
      
      <div class="article-summary">
        
          term与match查询一 match查询1.1 准备数据123456789101112131415161718192021222324252627282930313233343536373839404142434445PUT lqz/doc/1&#123;  "name":"顾老二",   ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/3-term%E4%B8%8Ematch%E6%9F%A5%E8%AF%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/2-Elasticsearch%E4%B9%8B%E6%9F%A5%E8%AF%A2%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E5%BC%8F/">db/Elasticsearch系列/9-11文档操作/2-Elasticsearch之查询的两种方式</a>
      </h2>
      <p class="article-date">2020年3月9日</p>
      
      <div class="article-summary">
        
          Elasticsearch之查询的两种方式一 前言简单的没挑战，来点复杂的，elasticsearch提供两种查询方式：

查询字符串(query string)，简单查询，就像是像传递URL参数一样去传递查询语句，被称为简单搜索或查询字符串(query string)搜索。
另外一种是通过 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/2-Elasticsearch%E4%B9%8B%E6%9F%A5%E8%AF%A2%E7%9A%84%E4%B8%A4%E7%A7%8D%E6%96%B9%E5%BC%8F/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/1-Elasticsearch%E7%9A%84%E5%A2%9E%E5%88%A0%E6%9F%A5%E6%94%B9(CURD)/">db/Elasticsearch系列/9-11文档操作/1-Elasticsearch的增删查改(CURD)</a>
      </h2>
      <p class="article-date">2020年3月9日</p>
      
      <div class="article-summary">
        
          Elasticsearch的增删查改(CURD)一 CURD之Create12345678PUT lqz/doc/1&#123;  "name":"顾老二",  "age":30,  "from": "gu",  "desc": "皮肤黑、武器长、性格直",  "tags": ["黑", " ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/9-11%E6%96%87%E6%A1%A3%E6%93%8D%E4%BD%9C/1-Elasticsearch%E7%9A%84%E5%A2%9E%E5%88%A0%E6%9F%A5%E6%94%B9(CURD)/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/9-%E4%B8%8A%E7%BA%BF/2-%E4%B8%8A%E7%BA%BF/">python/路飞项目/9-上线/2-上线</a>
      </h2>
      <p class="article-date">2020年3月7日</p>
      
      <div class="article-summary">
        
          购买服务器12# 购买阿里云服务器# 短期或是测试使用，创建 按量收费 服务器，可以随时删除，删除后不再计费，但要保证账户余额100元以上



连接服务器123451）账号&gt;: ssh root@39.99.192.1272）密码&gt;: ********



服务器命令管理员权 ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/9-%E4%B8%8A%E7%BA%BF/2-%E4%B8%8A%E7%BA%BF/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/9-%E4%B8%8A%E7%BA%BF/1-docker/">python/路飞项目/9-上线/1-docker</a>
      </h2>
      <p class="article-date">2020年3月7日</p>
      
      <div class="article-summary">
        
          Docker入门到精通123456789101112131415161718192021222324"""1）docker就是Linux上及其轻量的虚拟机2）虚拟机是存在宿主系统中，通过镜像给宿主系统拓展子系统的（一个镜像理论上可以做n个子系统）3）两个特别重要的概念	image：镜像	co ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/9-%E4%B8%8A%E7%BA%BF/1-docker/">详情...</a>
    </article>
  

  
    <div class="guide-pager">
  
    <a href="/page/26/"><span class="page-arrow">← </span>Prev</a>
  
  
    <a href="/page/28/">Next<span class="page-arrow"> →</span></a>
  
</div>
  
</main>


    <div class="scroll-top">
  <span class="arrow-icon"></span>
</div>
    <footer class="app-footer">
<!-- 不蒜子统计 -->
<span id="busuanzi_container_site_pv">
     本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_uv" style='display:none'>
     本站访客数<span id="busuanzi_value_site_uv"></span>人
</span>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>



  <p class="copyright">
    &copy; 2021 | Proudly powered by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank">小猿取经</a>
    <br>
    Theme by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank" rel="noopener">小猿取经</a>
  </p>
</footer>

<script>
  function async(u, c) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<script>
  async("//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", function(){
    FastClick.attach(document.body);
  })
</script>

<script>
  var hasLine = 'true';
  async("//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js", function(){
    $('figure pre').each(function(i, block) {
      var figure = $(this).parents('figure');
      if (hasLine === 'false') {
        figure.find('.gutter').hide();
      }
      var lang = figure.attr('class').split(' ')[1] || 'code';
      var codeHtml = $(this).html();
      var codeTag = document.createElement('code');
      codeTag.className = lang;
      codeTag.innerHTML = codeHtml;
      $(this).attr('class', '').empty().html(codeTag);
      figure.attr('data-lang', lang.toUpperCase());
      hljs.highlightBlock(block);
    });
  })
</script>





<!-- Baidu Tongji -->

<script>
    var _baId = 'c5fd96eee1193585be191f318c3fa725';
    // Originial
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?" + _baId;
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
</script>


<script src="/js/script.js"></script>


<script src="/js/search.js"></script>


<script src="/js/load.js"></script>



  <span class="local-search local-search-google local-search-plugin" style="right: 50px;top: 70px;;position:absolute;z-index:2;">
      <input type="search" placeholder="站内搜索" id="local-search-input" class="local-search-input-cls" style="">
      <div id="local-search-result" class="local-search-result-cls"></div>
  </span>


  </body>
</html>